package com.blog.service;

import com.blog.mapper.LabelMapper;
import com.blog.pojo.Label;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class LabelServiceImpl implements LabelService{

    @Autowired
    private LabelMapper labelMapper;

    @Override
    public boolean add(String id,String user_id,String name, String describe) {
        return labelMapper.add(id,user_id,name,describe);
    }

    @Override
    public List<Label> get(Map<String, Object> map) {
        return labelMapper.get(map);
    }

    @Override
    public Integer getCount(Map<String, Object> map) {
        return labelMapper.getCount(map);
    }

    @Override
    public boolean delete(String id) {
        return labelMapper.delete(id);
    }

    @Override
    public boolean update(Map<String, Object> map) {
        return labelMapper.update(map);
    }
}
